type
  SW = enum off on
  SWS = set[SW]

var sws1:SWS = {off}
echo sws1

sws1=sws1+{on}
echo sws1

sws1=cast[SWS](3)
echo sws1
